var mongoose = require('mongoose')
var Schema = mongoose.Schema
var userSchema = new Schema({//用户表
    username:String,
    phone: String,
    hash:String
})
var cartSchema = new Schema({//购物车表
    userid: String,
    id: Number,
    product_name:String,
    product_price:String,
    product_spec_name: String,
    product_quantity: Number,
    pc_cover:String,
    isCheck: Boolean
})
var usermodel = mongoose.model('usermodel', userSchema)
var cartmodel=mongoose.model('cartModel',cartSchema)
module.exports = {
    usermodel,
    cartmodel
}